#include "ota_http_curl.h"
#include <stdio.h>

int main(int argc, char const *argv[])
{
    char *url = "http://192.168.11.1:8000/fileinfo.json";

    response_body_t *response_body=  ota_http_curl_get(url);

    printf("获得数据: %s\n", response_body->str);

    char *download_url = "http://192.168.11.1:8000/download/gateway";

    char *file_path = "/home/atguigu/gateway.update";

    ota_http_curl_download(download_url,file_path);


    return 0;
}
